<?php
$cid        = gpc_getStringArray('cid');
$names       = "";

if(count($cid)==0)
{
    $cid[0]=$id;
}

foreach($cid as $id)
{
    //---------------Lay thong tin ve categories sap xoa
    $sql_select = "SELECT cName FROM tblreview WHERE iId = '$id'";
    $rs=$dbsql->query($sql_select);
    if($result = $dbsql->fetch_array($rs))
    {
    	$name           = $result["cName"];
        $names         .= $name.', ';
    }
    $sql_delete = "DELETE FROM tblreview WHERE iId ='$id'";
    $dbsql->query($sql_delete);

}
Insert_Tracking(" Del Review: $names");

page_transfer("Delete Review [ $names ] Success",$pagetr);
exit();
?>